#include "stdafx.h"
#include "TCPServer.h"


TCPServer::TCPServer(Window *window)
	: _window(window)
{
	WSADATA wsaData;
	int iResult = WSAStartup(MAKEWORD(2, 2), &wsaData);
	if (iResult != 0)
	{
		wsa_error_handling("don't successful init win socket.");
	}
	_listener = new TCPListener();
}


TCPServer::~TCPServer()
{
	WSACleanup();
}
